import App from './App'
import { createPinia } from "pinia"

import ElementPlus from "element-plus"
import "./editor/extension/index"

import "@icon-park/vue-next/styles/index.css"
import "element-plus/theme-chalk/index.css"
import "./editor/assets/style/global.scss"
import "./editor/assets/style/font.scss"


import i18n from './lang/i18n'
import SvgIcon from "./editor/icons"
import Icon from "./editor/plugins/icon"
import Component from "./editor/plugins/component"
import Directive from "./editor/plugins/directive"

import {createSSRApp} from 'vue'

export function createApp() {
	const app = createSSRApp(App)
	app.use(i18n)
 //    app.use(createPinia)
 //    app.use(ElementPlus)
 //    app.use(Icon)
 //    app.use(SvgIcon)
 //    app.use(Component)
 //    app.use(Directive)
	return {app}
}

